import { lazy } from 'react'
/* -------------------------------------------------------- antd -- */
import { Result, Button } from 'antd'
/* -------------------------------------------------------- Declare -- */
const { $fn } = window
/* -------------------------------------------------------- Async Component -- */
const Page = lazy(()=>import('#tp/content/page-content'))	// eslint-disable-line
/* -------------------------------------------------------- Page Component -- */
const _ = ({ isComponent, path }) => (
	<Page className='bcf' scrollXY>
		<div className='fxmc wh' style={{minHeight:546}}>
			<Result
				status		= '404'
				title 		= '404'
				subTitle	= { <span className='f14'>{ isComponent ? <>组件<s className='mlr5' style={{color:'red'}}>{path}</s>未找到</> : '访问地址不存在' }!!!</span> }
				extra 		= {<Button onClick={()=>$fn.back()} size='large' type='primary' style={{width:'120px'}}>返回</Button>}
			/>
		</div>
	</Page>
)

export default _